package com.sxt.common;

import java.util.List;

/**
 * 我走在长街中，听戏子场京城
 * 人杂乱戏小丑，
 */

/**
 * 分页信息分类
 * @param <T>
 */
public class PageInfo<T> {
    private Integer page;//页码

    private Integer limit;//每页数据条数

    private List<T> data; //具体数据

    private Integer count;//总数据条数

    public PageInfo(){}

    public PageInfo(Integer page, Integer limit, List<T> data, Integer count) {
        this.page = page;
        this.limit = limit;
        this.data = data;
        this.count = count;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
